package com.base.service.impl;

import com.base.mapper.voipmapper.TbkGoodContentMapper;
import com.base.po.tbk.TbkGoodContent;
import com.base.po.tbk.TbkGoodContentExample;
import com.base.service.TbkGoodContentService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tbkGoodContentService")
public class TbkGoodContentServiceImpl implements TbkGoodContentService {
	
	@Autowired
	private TbkGoodContentMapper tbkGoodContentMapper;


	@Override
	public int countByExample(TbkGoodContentExample example) {
		return tbkGoodContentMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TbkGoodContentExample example) {
		return tbkGoodContentMapper.deleteByExample(example);
	}

	@Override
	public int insert(TbkGoodContent record) {
		return tbkGoodContentMapper.insert(record);
	}

	@Override
	public int insertSelective(TbkGoodContent record) {
		return tbkGoodContentMapper.insertSelective(record);
	}

	@Override
	public List<TbkGoodContent> selectAll(Page page, String parentid) {
		return tbkGoodContentMapper.selectAll(page, parentid);
	}

	@Override
	public List<TbkGoodContent> selectByExample(TbkGoodContentExample example) {
		return tbkGoodContentMapper.selectByExample(example);
	}

	@Override
	public TbkGoodContent selectByPrimaryKey(String id) {
		return tbkGoodContentMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(TbkGoodContent record, TbkGoodContentExample example) {
		return tbkGoodContentMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TbkGoodContent record, TbkGoodContentExample example) {
		return tbkGoodContentMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TbkGoodContent record) {
		return tbkGoodContentMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int countAll(String parentid) {
		return tbkGoodContentMapper.countAll(parentid);
	}
}
